Skip to content

Instantly share code, notes, and snippets.

@danielml3
danielml3 / kernel-build.sh
Last active May 18, 2024 00:09
Build a QCOM GKI kernel with external modules and generate the module.load files
#!/bin/bash
KERNEL_TOOLS=/home/daniel/android/lineage-21.0/prebuilts/kernel-build-tools/linux-x86/bin/
CLANG_PATH=/home/daniel/android/lineage-21.0/prebuilts/clang/host/linux-x86/clang-r487747c/bin/
export PATH="$KERNEL_TOOLS:$CLANG_PATH:$PATH"
TARGET=$1
KERNEL_SRC=$(pwd)
O=out
@lyxal
lyxal / SpamCompilation.txt
Last active May 18, 2024 00:01
The Compilation of Spammers on PLDI
2024 Users:
https://langdev.stackexchange.com/users/3632/Nimadia Spam
https://langdev.stackexchange.com/users/3610/GoGetDeals spam
https://langdev.stackexchange.com/users/3589/8xbet spam
https://langdev.stackexchange.com/users/3561/Power Generation Enterprises
https://langdev.stackexchange.com/users/3564/spammy sammy
https://langdev.stackexchange.com/users/3563/Weath Spam
https://langdev.stackexchange.com/users/3565/Soul Mart
https://langdev.stackexchange.com/users/3592/8xbet
https://langdev.stackexchange.com/users/3556/Bath Estimates
@mjkstra
mjkstra / arch_linux_installation_guide.md
Last active May 17, 2024 23:51
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 17, 2024 23:49
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active May 17, 2024 23:48
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@cyberpunk042
cyberpunk042 / debian12_configuration_script.sh
Created May 1, 2024 17:13
TrueNAS Scale 24.04 Customization
#!/bin/bash
# Set script to exit on error
set -e
# Enable logging
exec > >(tee -i /var/log/setup-script.log)
exec 2>&1
echo "Starting script execution..."
@nk23x
nk23x / build.prop.tweaks
Last active May 17, 2024 23:44
build.prop tweaks in common raw format (edit needed to adapt to device)
#
# TWEAKS
#
# Qualcomm
#com.qc.hardware=true
#debug.qctwa.statusbar=1
#debug.qctwa.preservebuf=1
#debug.qc.hardware=true
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active May 17, 2024 23:43
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
import pandas as pd
from tqdm import tqdm
from trafilatura.sitemaps import sitemap_search
from trafilatura import fetch_url, extract
def get_urls_from_sitemap(resource_url: str) -> list:
"""
Get a list of urls from a sitemap with trafilatura
"""
@apfelchips
apfelchips / aliexpress_en.js
Last active May 17, 2024 23:40
userscript that forces aliexpress.com to be in english
// ==UserScript==
// @name aliexpress_en
// @version 0.1
// @description always redirect to aliexpress.com and reset the location/language/currency settings. This script pins locale settings cookie. Please clear cookies on all "aliexpress" domains before using this userscript.
// @author @attero@mastodon.social
// @match *://www.aliexpress.com
// @match *://www.aliexpress.com/*
// @match *://*.aliexpress.com/*
// @match *://www.aliexpress.ru
// @match *://www.aliexpress.ru/*